package mylibrary.nested.innerClass;

public class BankAccount {

	private long number;
	private long balance;
	private Action lastAction;
	
	public class Action {
		public String str;
		private String act;
		private long amount;
		private final static String a = "1";
		Action(String act, long amount) {
			this.act = act;
			this.amount = amount;
		}
		public String toString() {
			
			long c = BankAccount.this.number + amount;
			return number + act + amount;
		}
		
		private long number;
		private long balance;
	}
	
	public void deposit(long amount) {
		
		balance += amount;
		lastAction = new Action("deposit", amount);
	}
	
	
	public static void main(String[] args) {
		
		BankAccount ba = new BankAccount();
		BankAccount.Action action = ba.new Action("11", 10);
		action.toString();
		
	}
}
